bitkeeper revision 1.1236.12.17 (422ebd6bbZvWUE6_1BGsaHxqMbgdQg)
[PATCH] [PATCH] fix error path handling in physdev
This patch fixes the error path handling in physdev.o.
- handle memory allocation failures properly
- physdev_pci_access_modify: if something fails, remove the new
physdev or reset its access mode if it already existed
- clear the priviledge bits if something fails
- do_physdev_op: properly check copy_to-user
Patch against the unstable tree, works for me in qemu on x86 with domU
accessing a single pci device, but more testing appreciated (is anyone
using the direct pci access stuff?)
Signed-Off-By: Muli Ben-Yehuda <mulix@mulix.org>